package com.rundow.common.base.model.event;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.rundow.common.base.bean.driver.DriverConfiguration;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;

@Getter
@Setter
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DriverMetaEvent  extends ApplicationEvent implements Serializable {

    private static final long serialVersionUID = 1L;

    private String driverName;

    private DriverConfiguration driverConfiguration;

    public DriverMetaEvent(Object source,String driverName,DriverConfiguration driverConfiguration) {
        super(source);
        this.driverName=driverName;
        this.driverConfiguration=driverConfiguration;
    }
}
